import request from "@/utils/request";
// 账户列表
export function accountList(params) {
  return request({
    url: "/api/account/index",
    method: "get",
    params: params
  });
}
// 账户状态
export function accountStatus(params) {
  return request({
    url: "/api/account/status",
    method: "get",
    params: params
  });
}
// 账户信息
export function accountDetail(params) {
  return request({
    url: "/api/account/detail",
    method: "get",
    params: params
  });
}
// 创建账号
export function accountAdd(data) {
  return request({
    url: "/api/account/add",
    method: "post",
    data
  });
}
// 编辑账号
export function accountEdit(data) {
  return request({
    url: "/api/account/edit",
    method: "post",
    data
  });
}
// 上传头像
export function uploadAvatar(data) {
  return request({
    url: "/api/account/avatar",
    method: "post",
    data
  });
}
// 
